// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FA_ASSETS_TYPE
// * CreateDate    : 2012/3/12 17:00:34
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/12 17:00:34
// * LastChanger   : 2012/3/12 17:00:34
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class FaAssetsTypeEntity : EntityBase
    {
        public FaAssetsTypeTable TableSchema
        {
            get
            {
                return FaAssetsTypeTable.Current;
            }
		}
		
		public FaAssetsTypeEntity()
        {

        }
		
		public FaAssetsTypeEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.AssetTypeId = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_TYPE_ID"]));
			this.ParentId = Convert.ToString(CommonFunctions.ToObject(dr["PARENT_ID"]));
			this.AssetTypeCode = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_TYPE_CODE"]));
			this.AssetTypeName = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_TYPE_NAME"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }
		
		public FaAssetsTypeEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.AssetTypeId = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_TYPE_ID"]));
			this.ParentId = Convert.ToString(CommonFunctions.ToObject(dr["PARENT_ID"]));
			this.AssetTypeCode = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_TYPE_CODE"]));
			this.AssetTypeName = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_TYPE_NAME"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FaAssetsTypeTable.Current;
            }
        }
		
		#region Perporty List
        public string AssetTypeId
        {
            get { return Convert.ToString(GetData(FaAssetsTypeTable.C_ASSET_TYPE_ID)); }
            set { SetData(FaAssetsTypeTable.C_ASSET_TYPE_ID, value); }
        }
		
        public string ParentId
        {
            get { return Convert.ToString(GetData(FaAssetsTypeTable.C_PARENT_ID)); }
            set { SetData(FaAssetsTypeTable.C_PARENT_ID, value); }
        }
		
        public string AssetTypeCode
        {
            get { return Convert.ToString(GetData(FaAssetsTypeTable.C_ASSET_TYPE_CODE)); }
            set { SetData(FaAssetsTypeTable.C_ASSET_TYPE_CODE, value); }
        }
		
        public string AssetTypeName
        {
            get { return Convert.ToString(GetData(FaAssetsTypeTable.C_ASSET_TYPE_NAME)); }
            set { SetData(FaAssetsTypeTable.C_ASSET_TYPE_NAME, value); }
        }
		
        public string Description
        {
            get { return Convert.ToString(GetData(FaAssetsTypeTable.C_DESCRIPTION)); }
            set { SetData(FaAssetsTypeTable.C_DESCRIPTION, value); }
        }
		
		#endregion
	}
	
	
}	

